const { KEYUTIL, KJUR, RSAKey, hextob64 } = require('jsrsasign');

const { pubkey } = require('./public');
const { prikey } = require('./private');

const str = "admin";
const algName = "RSA";
const keyObj = KEYUTIL.getKey(pubkey);
const encHex = KJUR.crypto.Cipher.encrypt(str, keyObj, algName);


const b64 = hextob64(encHex)

console.log('encHex', encHex);
console.log('base64', b64);





